ci: Add GH action to build
authorColin Walters <walters@verbum.org>
Thu, 8 Apr 2021 17:01:03 +0000 (17:01 +0000)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:56 +0000 (12:53 -0400)
rust-bindings/rust/.github/workflows/rust.yml [new file with mode: 0644]

diff --git a/rust-bindings/rust/.github/workflows/rust.yml b/rust-bindings/rust/.github/workflows/rust.yml
new file mode 100644 (file)
index 0000000..f6ae8fa
--- /dev/null
@@ -0,0 +1,23 @@
+name: Rust
+
+on:
+  push:
+    branches: [ main ]
+  pull_request:
+    branches: [ main ]
+
+env:
+  CARGO_TERM_COLOR: always
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    container: quay.io/cgwalters/fcos-buildroot
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Build
+      run: cargo build --verbose
+    - name: Run tests
+      run: cargo test --verbose